ab515c099ca6ad98ccd84f8c1e94e9bd22143d4a,src/main/java/org/panda_lang/light/lang/Scopes.java,Scopes,registerDefaultElements,#,21

Before Change



        ElseThenScope.initialize(light);
        IfThenScope.initialize(light);
        LoopScope.initialize(light);
        RunnableScope.initialize(light);
        WhileScope.initialize(light);
    }

After Change


        });
        light.registerScope(loopScope);

        ScopeRepresentation whileScope = new ScopeRepresentation("while", WhileScope.class, light);
        whileScope.initializer(new ScopeInitializer() {
            @Override
            public Scope initialize(Flash flash) {
                String phrase = flash.getFullPhrase();
                ExpressionRuntime condition = flash.parseExpression(phrase);
                return new WhileScope(condition.toFactor());
            }
        });
        light.registerScope(whileScope);

        ScopeRepresentation functionScope = new ScopeRepresentation("function", FunctionScope.class, light);
        functionScope.initializer(new ScopeInitializer() {